package com.xwj.back.service;

import com.alibaba.fastjson2.JSONObject;
import com.xwj.back.pojo.Store;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface StoreService {
    void batchExport(List<Integer> data, HttpServletResponse response) throws IOException;
    void ExportExcel(HttpServletResponse response) throws IOException;
    Map<String,String> ImportExcel(MultipartFile file) throws IOException;
    JSONObject getStores(String username, String role, Integer page);
    List<Store> getStoreAll();
    String addStore(Map<String,String> data);
    String updateStore(Map<String,String> data);
    String deleteStore(Map<String,String> data);
    String deleteSelect(Map<String,String> data);
    List<Store> getStoreByType(List<String> types,String username,String role);
    List<Store> getStoreByLike(String username,String role,String storeName,String storeBoss);
}
